package fr.cie.blog.beans;

import java.util.ArrayList;
import java.util.List;

/**
 * User class.
 * 
 * @author AetM
 * 
 */
public class User extends AbstractModel {
	/**
	 * surname.
	 */
	private String surname;
	/**
	 * password.
	 */
	private String password;
	/**
	 * role.
	 */
	private int role = 0;
	/**
	 * email.
	 */
	private String email;
	/**
	 * attachedCard.
	 */
	private Card card;

	/**
	 * login.
	 */
	private String login;

	/**
	 * articleList.
	 */
	private List<Article> articleList = new ArrayList<Article>();
	/**
	 * commentList.
	 */
	private List<Comment> commentList = new ArrayList<Comment>();

	/**
	 * Default constructor.
	 */
	public User() {
		super();
		surname = "";
		password = "";
		role = 0;
		email = "";
		login = "";
	}

	/**
	 * @return the articleList
	 */
	public final List<Article> getArticleList() {
		return articleList;
	}

	/**
	 * @return the attachedCard
	 */
	public final Card getCard() {
		return card;
	}

	/**
	 * @return the commentList
	 */
	public final List<Comment> getCommentList() {
		return commentList;
	}

	/**
	 * @return the email
	 */
	public final String getEmail() {
		return email;
	}

	/**
	 * @return the login
	 */
	public final String getLogin() {
		return login;
	}

	/**
	 * @return the password
	 */
	public final String getPassword() {
		return password;
	}

	/**
	 * @return the role
	 */
	public final int getRole() {
		return role;
	}

	/**
	 * @return the surname
	 */
	public final String getSurname() {
		return surname;
	}

	/**
	 * @param newArticleList
	 *            the articleList to set
	 */
	public final void setArticleList(final List<Article> newArticleList) {
		this.articleList = newArticleList;
	}

	/**
	 * @param newAttachedCard
	 *            the attachedCard to set
	 */
	public final void setCard(final Card newAttachedCard) {
		this.card = newAttachedCard;
	}

	/**
	 * @param newCommentList
	 *            the commentList to set
	 */
	public final void setCommentList(final List<Comment> newCommentList) {
		this.commentList = newCommentList;
	}

	/**
	 * @param newEmail
	 *            the email to set
	 */
	public final void setEmail(final String newEmail) {
		this.email = newEmail;
	}

	/**
	 * @param newLogin
	 *            the login to set
	 */
	public final void setLogin(final String newLogin) {
		this.login = newLogin;
	}

	/**
	 * @param newPassword
	 *            the password to set
	 */
	public final void setPassword(final String newPassword) {
		this.password = newPassword;
	}

	/**
	 * @param newRole
	 *            the role to set
	 */
	public final void setRole(final int newRole) {
		this.role = newRole;
	}

	/**
	 * @param newSurname
	 *            the surname to set
	 */
	public final void setSurname(final String newSurname) {
		this.surname = newSurname;
	}

}